<script>
export default {
	onLaunch: function () {
		console.log('App Launch')
	},
	onShow: function () {
		console.log('App Show')
	},
	onHide: function () {
		console.log('App Hide')
	}
}
</script>

<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import "uview-ui/index.scss";

/* 全局样式 */
.page {
	background-color: #f8f8f8;
	font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
	font-size: 28rpx;
	color: #333;
	box-sizing: border-box;
}

/* 清除浮动 */
.clearfix:after {
	content: '';
	display: block;
	clear: both;
}

/* 文本溢出省略号 */
.text-ellipsis {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 多行文本溢出省略号 */
.text-ellipsis-2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 按钮样式重置 */
button {
	background: none;
	padding: 0;
	margin: 0;
	line-height: 1;
	border: none;

	&:after {
		border: none;
	}
}

/* 主题色 */
.theme-color {
	color: #FF6600;
}

.theme-bg {
	background-color: #FF6600;
}

/* 通用边距 */
.container {
	padding: 20rpx;
}

/* 自定义底部导航栏样式 */
.u-tabbar-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1;
}

.u-tabbar-item__icon {
	width: 46rpx;
	height: 46rpx;
	margin-bottom: 4rpx;
}

.u-tabbar-item__text {
	font-size: 24rpx;
	color: #999;
}

.u-tabbar-item__text--active {
	color: #FF6600;
}
</style>
